<template>
	<view class="mucis-head"  :style="{color:color}">
			<view v-if="icon" class="mucis-head-icon" :class="{'music-head-icon':blackicon}">
				<text class="iconfont icon-back" @tap="handelToBack"></text>| 
				<text class="iconfont icon-home" @tap="handelTohome"></text>
			</view>
		{{title}}
	</view>
</template>

<script>
	export default {
		name:"mucishead",
		data() {
			return {
				
			};
		},
		props:['title','icon','color','blackicon'],
		methods:{
			handelToBack(){
				uni.navigateBack()
			},
			handelTohome(){
				uni.navigateTo({
					url:'/pages/index/index'
				})
				
			}
		}
		
	}
</script>

<style scoped>
	.mucis-head{
		width: 100%;
		height: 75px;
		font-size: 16px;
		line-height: 80px;
		text-align: center;
		color: #000000;
		position: relative;
	}
	.mucis-head-icon{
		position: absolute;
		font-size: 16px;
		left:8px;
		top:26px;
		width: 90px;
		height:30px;
		line-height: 31px;
		background: rgba(0,0,0,0.4);
		color: #FFFFFF;
		border-radius: 15px;
		display: flex;
		justify-content: space-evenly;
	}
	.music-head-icon{
		color:black;
		border: 1px #eaeaea solid;
		background-color: #FFFFFF;
	}

</style>
